<template>
    <div id="background">
        <el-container>
            <!-- <el-header id="woMenHead">
                <img class="wmIcon" src="../../assets/img/mine/back.png" @click="backsz">
                <span class="wmHead">关于我们</span>
            </el-header> -->
            <el-header id="woMenHeadPosition">
                <el-row type="flex" style="height:80%;display:flex;align-items: flex-end">
                    <el-col :xs="2" :sm="2" :md="2" :offset="1" class="imgCol">
                        <img v-bind:src="backIcon" class="backSize" @click="back" />
                    </el-col>
                    <el-col :xs="6" :sm="6" :md="6" :offset="6" class="imgCol">
                        <span class="titleSize">关于我们</span>
                    </el-col>
                </el-row>
            </el-header>
            <el-main id="woMenMain">
                <!-- <el-row>
                    <img class="wmImg" src="../../assets/img/mine/wmlogo.png">
                </el-row>
                <br> -->
                <el-row>
                    <el-col>
                        <div class="line"></div>
                    </el-col>
                </el-row>
                <el-row type="flex" style="height:10%;">
                     <el-col :xs="22" :sm="24" :md="24" class="wmICol">
                        <el-button class="wmBtn" @click="gofwxy">
                            服务协议
                        </el-button>
                    </el-col>
                    <el-col :xs="2" class="wmICol">
                        <i class="el-icon-arrow-right" style="font-size:13px;"></i>
                    </el-col>
                </el-row>
                <el-row>
                    <el-col>
                        <div class="tsline"></div>
                    </el-col>
                </el-row>
                <el-row class="lianXiFangShi">
                    <el-row class="lianXiRow">
                        <el-col class="lianXiContent imgCol" style="width:30%">联系方式：</el-col>
                        <el-col class="lianXiContent " style="width:70%">{{dianHua}}</el-col>
                    </el-row>
                    <el-row class="lianXiRow">
                        <el-col class="lianXiContent imgCol" style="width:30%">联系邮箱：</el-col>
                        <el-col class="lianXiContent " style="width:70%">{{youXiang}}</el-col>
                    </el-row>
                    <el-row class="lianXiRow">
                        <el-col class="lianXiContent imgCol" style="width:30%">联系地址：</el-col>
                        <el-col class="lianXiContent " style="width:70%">{{diZhi}}</el-col>
                    </el-row>
                </el-row>
                <el-row>
                    <el-col>
                        <div class="tsline"></div>
                    </el-col>
                </el-row>
            </el-main>
        </el-container>
    </div>
</template>

<script>
import backIcon from '../../assets/img/mine/back.png'
export default {
    data(){
       return{
           youXiang:'',
           dianHua:'',
           diZhi:'',
        //    lxfs:[],
           backIcon:backIcon,
           normalHeight:document.documentElement.clientHeight,
       }
    },
    mounted(){
        var bg = document.getElementById("background");
       // this.normalHeight=document.documentElement.clientHeight;
        console.log("height:"+this.normalHeight);
        bg.style.height = this.normalHeight+"px";
        bg.style.backgroundColor = "#FFFFFF"
        bg.style.margin = "0px";

        var head=document.getElementById("woMenHeadPosition");
        var headHeight=this.normalHeight/30 *4 ;
        console.log("headHeight:"+headHeight);
        head.style.height=headHeight+"px";

        var main=document.getElementById("woMenMain");
        var mainHeight=this.normalHeight/30 *24 ;
        main.style.height=mainHeight+"px";

        this.getlxfs();

    },
    methods:{
        gofwxy(){
            this.$router.push({
                path:'/mine/fuWuXieYi'
            })
        },
        back(){
            console.log("back:");
            this.$router.go(-1);
        },
       getlxfs(){
           var URL=this.IP.IP+'/system/getContactUs'
                this.$ajax({
                    method:'get',
                    url:URL,
                }).then(response =>{
                this.dianHua = response.data.data.phone;
                this.diZhi=response.data.data.location;
                this.youXiang=response.data.data.email;
                console.log(this.qq);
                }).catch(error => {
                console.log('获取联系方式失败');
                });
       }

    }
}
</script>

<style>
/* .lianXiContent{
    position: absolute;
    left:30%;
} */
.lianXiRow{
    height: 38px;
}
/* .fangShi{
    margin-left:20px;
    margin-top:12px;
} */
.lianXiFangShi{
    color: #707070;
    height:28%;
    padding-left: 20px;
    padding-right: 20px;
    padding-top:12px;
    padding-bottom:12px;
}
#woMenHeadPosition {
  background-color: #53cdf5;
}
.backSize{
    height: 26px;
}
.titleSize{
    font-size:1.125em;
    color:#ffffff
}
@media screen and (max-height: 600px){
  .backSize{
      height: 22px;
  }
  .titleSize{
      font-size: 1em;
  }
}
.tsline{
    width: 100%;
    height: 5px;
    background-color: #f5f4f9;
}
.line{
    width: 100%;
    height: 1px;
    background-color: #F0F0F0;
}
.wmICol{
    display:flex;
    align-items:center;
    justify-content:center
}
.wmBtn{
    border-style: none;
    outline: none;
    height: 40px;
    width: 100%;
    text-align: left;
    border: none;
    background-color: rgb(255,255,255,0);
    color: #707070;
    font-size: 1em;
}
#woMenMain{
    padding-left: 0px;
    padding-right: 0px;
    background: #FFFFFF;
}

</style>
